﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace Chizx.Web.journal
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
                {
                    if (null == Session["UserEntity"])
                    {
                        Response.Redirect("/e/Login.aspx");
                    }
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					int zj_id=(Convert.ToInt32(strid));
					ShowInfo(zj_id);
				}
			}
		}
		
	private void ShowInfo(int zj_id)
	{
		Chizx.BLL.JournalBll bll=new Chizx.BLL.JournalBll();
		Chizx.Model.JournalModel model=bll.GetModel(zj_id);
		this.lblzj_id.Text=model.zj_id.ToString();
		this.lblzu_id.Text=model.zu_id;
		this.lblzj_topic.Text=model.zj_topic;
		this.lblzj_context.Text=model.zj_context;
		this.lblzj_createdate.Text=model.zj_createdate.ToString();
        this.lblzj_review.Text = model.zj_review == "0" ? "暂无" : model.zj_review;
        this.lblzj_status.Text = model.zj_status == "j0" ? "未审核" : (model.zj_status == "j1" ? "已审核" : "未知状态");

	}


    }
}
